<?php
require_once("conf/db_connection.php");
$id = $_GET['id'];
$opt_equip_size = "";
$opt_equip_size .= "<option value=''>All</option>";
$opt_equip_size .= "<option value='10'>10FTR</option>";
$opt_equip_size .= "<option value='20'>20FTR</option>";
$opt_equip_size .= "<option value='40'>40FTR</option>";

$opt_fleet = "";
$opt_fleet .= "<option value=''>All</option>";
$query_fleet = "SELECT DISTINCT(fleet_group) FROM truck WHERE is_deleted='0'";
$result_fleet = mysql_query($query_fleet) or die("SELECT EQUIPMENT SIZE ".mysql_error());
while($row_fleet = mysql_fetch_array($result_fleet))
{
	$opt_fleet .= "<option value='".$row_fleet['fleet_group']."'>".$row_fleet['fleet_group'] ."</option>";
}

$opt_stat = "";
$opt_stat .= "<option value=''>All</option>";
$opt_stat .= "<option value='queue'>Queue</option>";
$opt_stat .= "<option value='for confirmation'>For confirmation</option>";

$return_str = "<table id='pop_table' class='pop_search' border='0' style='margin:25px 25px 0px 25px; padding: 0px auto;width:350px;height:350px;background-color:#FFFFFF;'>
<thead style='height:15%;'>
<tr id='hor-minimalist-b'>
	<th colspan='8'>Create Contact</th>
</tr>
</thead>
<tbody>
<tr>
	<td class='label'>Name:</td>
	<td class='td_input'><input id='txt_name' name='txt_name' type='text' /></td>
</tr>
<tr>
	<td class='label'>Position:</td>
	<td class='td_input'><input id='txt_post' name='txt_post' type='text' /></td>
</tr>
<tr>
	<td class='label'>Email:</td>
	<td class='td_input'><input id='txt_email' name='txt_email' type='text' /></td>
</tr>
<tr>
	<td class='label'>Cellphone:</td>
	<td class='td_input'><input id='txt_cell' name='txt_cell' type='text' /></td>
</tr>
<tr>
	<td class='label'>Landline:</td>
	<td class='td_input'><input id='txt_landline' name='txt_landline' type='text' /></td>
</tr>
<tr>
	<td class='label'>&nbsp;</td>
	<td class='td_input'>&nbsp;</td>
</tr>
<tr>
	<td class='label'>&nbsp;</td>
	<td class='td_input' style='text-align:left'>
		<input onClick='saveContact()' style='width:auto;' type='button' value='Submit' />
		<input onClick='close_search()' style='width:auto;' type='button' value='Close' />
		<input id='hf_contact_trucker_id' name='hf_contact_trucker_id' type='hidden' value='".$id."' />
	</td>
</tr>
</tbody>
</table>";
echo $return_str;
?>